import React,{useEffect,useState} from 'react';
import {Descriptions} from 'antd'
import ProjectReviewController from '@/services/ProjectReview/ProjectReviewController'

const ReveiwDetail = props =>{
    const {projectCode} = props
    const [reviewData,setReviewData] = useState([])
    useEffect(() => {
        ProjectReviewController.getList(projectCode).then(response => {
            response&&response.data&&setReviewData(response.data)
        });
    }, [])
    return(
        <div>
            {reviewData.map(item=><Descriptions title={item.reviewStep}>                
                <Descriptions.Item label={'审核人'}>{item.reviewName}</Descriptions.Item>
                <Descriptions.Item label={'审核结果'}>{item.reviewResult}</Descriptions.Item>
                <Descriptions.Item label={'审核时间'}>{item.reviewTime}</Descriptions.Item>
                <Descriptions.Item label={'审核备注'}>{item.reviewRemark}</Descriptions.Item>
            </Descriptions>)}
        </div>
    )
}
export default ReveiwDetail;